<cfparam name="PA_ID" type="integer" />
<cfparam name="returnView" type="string" default="workshops" />

<cfscript>
	base = new assets.calgrants.com.Base();
	paGateway = new assets.calgrants.com.gateway.PAGateway();
	pa = paGateway.get(PA_ID = PA_ID, Program_Year = request.currentProgramYear);
</cfscript>

<cfif pa.getPA_ID() gt 0>

	<script type="text/javascript" language="javascript">
	<!--
		$(function() {
			$("#paModal").modal();
			resizeModal("paModal");
		})
	//-->
	</script>
	
	<cfoutput>

		<div id="paModal" class="modal modal-fullscreen" data-backdrop="static">
			<div class="modal-header">
				<h3>Partnership Agreement</h3>
			</div>
			<div class="modal-body">
				<div class="container-fluid">
					<div class="row-fluid">
						<div class="span12">
							#pa.getPA()#
						</div>
					</div>
				</div>
			</div>
			<div class="modal-footer">
				<cfoutput>
					<a class="btn btn-success" href="?view=#returnView#">Close</a>
				</cfoutput>
			</div>
		</div>
	
	</cfoutput>

<cfelse>

	<div class="alert alert-info notFound">Partnership Agreement not found or insufficient permissions to perform this operation</div>

</cfif>